package io.renren.modules.lanling.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.lanling.entity.AllSubjectEntity;
import io.renren.modules.lanling.entity.CertificateEntity;
import io.renren.modules.lanling.entity.StudentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 证件表
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-11-26 15:50:09
 */
public interface CertificateService extends IService<CertificateEntity> {

    List<CertificateEntity> queryList(Query query);


    PageUtils queryPage(Map<String, Object> params);

    void deleteByUserId(@Param("studentId") long studentId);

    void updateCertificate(Map<String, Object> params);

    void deleteByAllSubjectId(List<Integer> idList);

    void deleteByUserAndCert(Map<String, Object> params);

    void dealWithCert(List<Integer> allSubjectEntityList, StudentEntity studentEntity);
}

